package practicedemo64.Test;

import practicedemo64.Javabean.Cook;
import practicedemo64.Javabean.Employ;
import practicedemo64.Javabean.Manager;

public class Test {
    public static void main(String[] args) {

        //创建对象
        Manager manager1 = new Manager("001", "Stephen Hu", 8000, 10000);
        Cook cook1 = new Cook("9737", "绝命毒师", 6000);
        Employ employ1 =new Employ("987","小美",4000);

        System.out.printf(manager1.getId() + "," + manager1.getName() + "," + manager1.getSalary() + "," + manager1.getBonus() + ",");
        manager1.work();
        manager1.eat();

        System.out.printf(cook1.getId()+","+cook1.getName()+","+cook1.getSalary()+",");
        cook1.work();
        cook1.eat();

        System.out.printf(employ1.getId()+","+employ1.getName()+","+employ1.getSalary()+",");
        employ1.work();
        employ1.eat();
    }
}
